﻿@model TaoNiuOA.Models.Workday
@{
    ViewBag.Title = "编辑工作时间";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>编辑工作时间</legend>
        @Html.HiddenFor(model => model.WorkDayID)
        @Html.HiddenFor(model => model.Date)
        @Html.HiddenFor(model => model.DayOfWeek)
        <div class="editor-label">
            @Html.LabelFor(model => model.Date)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.DayOfWeek)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.DayOfWeek)
            @Html.ValidationMessageFor(model => model.DayOfWeek)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.OnWork)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OnWork)
            @Html.ValidationMessageFor(model => model.OnWork)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.OffWork)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OffWork)
            @Html.ValidationMessageFor(model => model.OffWork)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IsHoliday)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsHoliday)
            @Html.ValidationMessageFor(model => model.IsHoliday)
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("返回列表", "Index")
</div>
